package zhao.yao.chen.backend.basic.framework.translate.config;

import com.fhs.trans.service.impl.TransService;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import zhao.yao.chen.backend.basic.framework.translate.core.TranslateUtils;

@Configuration
public class YudaoTranslateAutoConfiguration {

    @Bean
    @SuppressWarnings({"InstantiationOfUtilityClass"})
    public TranslateUtils translateUtils(TransService transService) {
        TranslateUtils.init(transService);
        return new TranslateUtils();
    }

}
